package utils

import (
	"errors"
)

var container = make(map[string]interface{})

func Set(name string, value interface{}) {
	container[name] = value
}

func Get(name string) (interface{}, error) {
	if v, ok := container[name]; ok {
		return v, nil
	} else {
		return nil, errors.New("key not exist")
	}
}
